import { h,ref } from "../../lib/guide-mini-vue.esm.js"


export const Foo = {
    
    setup(props){
        console.log(props);
        let arr = ref([1,2]);
        // readonly
        props.count ++;
        setTimeout(()=>{
            arr[1] = 3;
            console.log(arr);
        },1000)
        return {arr};
    },  
    render(){
        return h("div",{},"foo: " + this.arr);
    },

}